package com.csair.demo.controller;
import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.csair.demo.utils.BeanFactoryHelper;


@Controller
@RequestMapping("/")
public class ScheduleController extends BaseController {

	@Autowired
	private BeanFactoryHelper beanFactoryHelper;
	
	@RequestMapping("/list")
	public ModelAndView queryGodownentry(ModelMap modelMap) {

		try {
			Map<String, Object> paramVal = new HashMap<String, Object>();
			paramVal.put("beanFactoryHelper", beanFactoryHelper);
			modelMap.addAllAttributes(paramVal);			
		} catch (Exception e) {
			return new ModelAndView("error", "s", e.getMessage());
		}
		return new ModelAndView("/index.jsp", modelMap);
	}





}
